<template>
  <div class="not-found">
    <h1>404</h1>
    <p>页面不存在</p>
    <a-button type="primary" @click="router.push('/')">返回首页</a-button>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router';

const router = useRouter();
</script>

<style scoped>
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
}

h1 {
  font-size: 6rem;
  margin-bottom: 1rem;
  color: #1890ff;
}

p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #666;
}
</style>